package bairui.international.controller.user.account;

import com.sh_lianjing.spring.web.controller.enhance.module.*;
import com.sh_lianjing.spring.web.controller.enhance.module.body.*;
import com.sh_lianjing.spring.web.controller.enhance.output.bean.*;
import bairui.international.controller.user.account.C_User_Account_Edit_Edit;

/**
 *
 * Module_Edit
 *
 */
class Module_Edit{

	
	public Module module(
		bairui.international.model.domain.jpa.TB_User bean
		, 
		C_User_Account_Edit_Edit.Edit.Operate c_User_Account_Edit_Edit_Edit_Operate
				
		,com.sh_lianjing.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return moduleTemplate(
				bean
				, 
				c_User_Account_Edit_Edit_Edit_Operate
						
				,editors
			);
	}
	
	public Module module(
		java.util.List<bairui.international.model.domain.jpa.TB_User> bean
		, 
		C_User_Account_Edit_Edit.Edit.Operate c_User_Account_Edit_Edit_Edit_Operate
				
		,com.sh_lianjing.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return moduleTemplate(
				bean
				, 
				c_User_Account_Edit_Edit_Edit_Operate
						
				,editors
			);
	}
	
	
	/**
	 * 编辑模块
	 */
	private Module moduleTemplate(
		Object bean
		, 
		C_User_Account_Edit_Edit.Edit.Operate c_User_Account_Edit_Edit_Edit_Operate
				
		,com.sh_lianjing.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return
			new Module(
					new ModuleHead("编辑")
					, 
					new EditModuleBody(
							bean, 
							Model.class,
							c_User_Account_Edit_Edit_Edit_Operate, 
							Relation.relations(
								)
							,editors
						)
				);
	}
	
	/**
	 * 输入模型
	 */
	static public class Models {
		private @lombok.Getter @lombok.Setter java.util.List<Model> models = new java.util.ArrayList<>();
	}
	
	@org.springframework.stereotype.Component("bairui.international.controller.user.account.Module_Edit$Model")
	
	static public class Model
	
	 extends bairui.international.model.domain.jpa.TB_User
	
	 implements 
	
		com.sh_lianjing.spring.web.controller.enhance.input.InputModelable
	
	{
	
	
	
		/**
	
		 * 默认构造函数
	
		 */
	
		public Model(){}
	
	
	
		/**
	
		 * 构造函数
	
		 */
	
		public Model(
	
			bairui.international.model.domain.jpa.TB_User bean
	
		){
	
			if(null != bean){
	
				this.setRealName(bean.getRealName());
	
				this.setPhone(bean.getPhone());
	
				this.setCompany(bean.getCompany());
	
				this.setAccountNumber(bean.getAccountNumber());
	
				this.setBank(bean.getBank());
	
			}
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("姓名")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(1001)
	
		@javax.validation.constraints.Size(min=0, max=30)
	
		@Override
	
		public String getRealName() {
	
			return (String)super.getRealName();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("电话")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(2001)
	
		@javax.validation.constraints.Size(min=0, max=20)
	
		@Override
	
		public String getPhone() {
	
			return (String)super.getPhone();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("公司")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(3001)
	
		@javax.validation.constraints.Size(min=0, max=255)
	
		@Override
	
		public String getCompany() {
	
			return (String)super.getCompany();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("提现账号")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(4001)
	
		@javax.validation.constraints.Size(min=0, max=50)
	
		@Override
	
		public String getAccountNumber() {
	
			return (String)super.getAccountNumber();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("银行")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(5001)
	
		@javax.validation.constraints.Size(min=0, max=100)
	
		@Override
	
		public String getBank() {
	
			return (String)super.getBank();
	
		}
	
		
	
	
	
		/**
	
		 * 非继承属性
	
		 */
	
	
	
		/**
	
		 * 得到输入属性
	
		 */
	
		/** 得到姓名 */
	
		public String gainRealName() {
	
			return this.getRealName();
	
		}
	
		/** 得到电话 */
	
		public String gainPhone() {
	
			return this.getPhone();
	
		}
	
		/** 得到公司 */
	
		public String gainCompany() {
	
			return this.getCompany();
	
		}
	
		/** 得到提现账号 */
	
		public String gainAccountNumber() {
	
			return this.getAccountNumber();
	
		}
	
		/** 得到银行 */
	
		public String gainBank() {
	
			return this.getBank();
	
		}
	
	
	
		/**
	
		 * 转换到表单数据格式
	
		 */
	
		public java.util.Map<String, String> toFormData() throws com.sh_lianjing.serialize.json.jackson.exception.JsonException{
	
			return com.sh_lianjing.web.util.Util_Form.beanToFormDataFormat(this);
	
		}
	
	
	
	}
	
	
	
	static public class Relation
	{
		public static java.util.Map<String, java.util.List<?>> relations(
		){
			java.util.Map<String, java.util.List<?>> map = new java.util.HashMap<>();
			return map;
		}
	}
	
	
	
	/**
	 * 输出模型
	 */
	

}
